package com.aiwiown.face.domain.orc;

import com.aiwiown.face.ApiObject;
import com.aiwiown.face.internal.mapping.ApiField;

/**
 * @ClassName : OcrCard
 * @Description :身份证信息
 * @Author : dbin0123
 * @Date: 2020-03-15 19:25
 */
public class OCRCardInfo extends ApiObject {

    private static final long serialVersionUID = 2172544011948591981L;

    @ApiField("gender")
    private String gender;
    @ApiField("name")
    private String name;
    @ApiField("id_card_number")
    private String idCardNumber;
    @ApiField("birthday")
    private String birthday;
    @ApiField("race")
    private String race;
    @ApiField("address")
    private String address;
    @ApiField("type")
    private Integer type;
    @ApiField("side")
    private String side;

    /**
     * 签发机关
     */
    @ApiField("issued_by")
    private String issuedBy;
    /**
     * 有效日期，返回值有两种格式：
     * 一个16位长度的字符串：YYYY.MM.DD-YYYY.MM.DD
     * 或是：YYYY.MM.DD-长期
     */
    @ApiField("valid_date")
    private String validDate;

    @ApiField("legality")
    private OCRCardLegality legality;

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIdCardNumber() {
        return idCardNumber;
    }

    public void setIdCardNumber(String idCardNumber) {
        this.idCardNumber = idCardNumber;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getRace() {
        return race;
    }

    public void setRace(String race) {
        this.race = race;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getSide() {
        return side;
    }

    public void setSide(String side) {
        this.side = side;
    }

    public String getIssuedBy() {
        return issuedBy;
    }

    public void setIssuedBy(String issuedBy) {
        this.issuedBy = issuedBy;
    }

    public String getValidDate() {
        return validDate;
    }

    public void setValidDate(String validDate) {
        this.validDate = validDate;
    }

    public OCRCardLegality getLegality() {
        return legality;
    }

    public void setLegality(OCRCardLegality legality) {
        this.legality = legality;
    }
}
